package com.woniuxy.run.user.mapper;

import com.woniuxy.run.user.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
public interface UsersMapper extends BaseMapper<Users> {
    List<Users> all();

    //根据账号查询是否存在用户
    @Select("select * from run_users where account = #{account}")
    Users selectByAcc(String account);

    //根据account修改头像
    int updateAvatar(String accout,String avatar);
}
